package com.netcracker.lab1.utils;

import com.netcracker.lab1.controller.MusicTrackController;
import com.netcracker.lab1.model.MusicTrack;

/**
 * Created with IntelliJ IDEA.
 * User: nocturne
 * Date: 25.01.13
 * Time: 23:34
 * To change this template use File | Settings | File Templates.
 */
import java.util.Comparator;

public class SortComparator implements Comparator<MusicTrack> {

    public int compare(MusicTrack c1, MusicTrack c2){
        return c1.getAuthor().compareTo(c2.getAuthor());
    }
}
